package com.hk.order.feign;

import com.hk.order.feign.fall.StockBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "hk-stock-nacos",fallback = StockBack.class)
public interface HKStockClient {

    @GetMapping("/stock/{productId}/{count}")
    public Boolean updateStock(@PathVariable("productId") String productId, @PathVariable("count") Integer count) ;
}
